package com.example.springcloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springcloud.common.entity.Dept;
import com.example.springcloud.mapper.DeptMapper;
import com.example.springcloud.service.DeptService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 莫磊
 * @date 2025/8/20
 * @description
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements DeptService{
    @Override
    public int addDept(Dept dept) {
        return this.baseMapper.addDept(dept);
    }

    @Override
    public List<Dept> findByDnameLike(String dname) {
        return this.baseMapper.findByDnameLike(dname);
    }

    @Override
    public List<Dept> findByDeptno(String deptno) {
        return this.baseMapper.findByDeptno(deptno);
    }
}
